package com.hiedu.commons;/**
 *
 * @ProjectName: hi-app
 * @Titile: ServiceCode
 * @Author: 86180
 * @Description: TODO
 */
public enum ServiceCode {
    /*操作成功*/
    OK(20000),
    /*操作失败*/
    ERROR(50000),
    /*登录失败*/
    ERROR_LOGIN(50001),
    /*注册失败*/
    ERROR_REGISTER(60000),
    /*新增失败*/
    ERROR_NEW_ADD(60001),
    /*修改失败*/
    ERROR_UPDATE(60002),
    /*删除失败*/
    error_delete(60003),
    /*数据不存在*/
    ERROR_NOT_FOUND(60004),
    /*未知错误*/
    ERROR_NOT_KNOW(90000),

    ERROR_BAD_REQUEST(50001);
    private Integer code;
    ServiceCode(Integer code) {
        this.code = code;
    }
    public Integer getCode() {
        return code;
    }
}
